const currentAuth = ["admin"];
export { currentAuth };

export function getCurrentAuthority() {
	return currentAuth;
}

export function check(authority) {
	const current = getCurrentAuthority();
	return current.some(item => authority.includes(item));
}

export function isLogin() {
	const current = getCurrentAuthority();
	return current && current[0] !== "guest";
}
